package com.rnkrsoft.suyan.config.server.services.file.domains;

import com.rnkrsoft.suyan.config.internal.enums.FileStatusEnum;
import com.rnkrsoft.suyan.config.server.services.authority.domains.AuthorityUser;
import lombok.Data;

import javax.doc.annotation.ApidocElement;
import javax.doc.data.Response;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by woate on 2019/5/15.
 */
@Data
public class ViewFileResponse extends Response {
    @ApidocElement(value = "文件编号", maxLen = 36)
    String fileId;
    @ApidocElement(value = "项目名称", maxLen = 36)
    String project;
    @ApidocElement(value = "环境名称", maxLen = 36)
    String environment;
    @ApidocElement(value = "机器名称", maxLen = 36)
    String machine;
    @ApidocElement(value = "文件路径", maxLen = 36, required = false)
    String filePath;
    @ApidocElement(value = "文件名称", maxLen = 36, required = true)
    String fileName;
    @ApidocElement(value = "真实文件")
    String realFileName;
    @ApidocElement(value = "文件指纹")
    String fileFingerprint;
    @ApidocElement(value = "文件描述")
    String fileDesc;
    @ApidocElement(value = "文件状态", enumClass = FileStatusEnum.class)
    Integer fileStatus;
    @ApidocElement(value = "拥有权限的用户", required = false)
    final List<AuthorityUser> authorityUsers = new ArrayList<AuthorityUser>();
}
